﻿#if UNITY_EDITOR
using System;
using UnityEditor;

namespace AI.Graph.Editor {


    [CustomPropertyDrawer (typeof (NodeParameter))]
    public class NodeParameterDrawer : ParameterDrawer<NodeParameter> {

        protected override void OnParameterGUI (string title, SerializedProperty parameterProperty, Type type, Node node) {
            parameterProperty.objectReferenceValue = EditorGUI.NodeParameter (title, (NodeParameter) parameterProperty.objectReferenceValue, type, node);
        }

    }


}
#endif